package com.flexrrb.events
{
	import flash.events.Event;
	
	import mx.controls.Menu;

	public class RightClickEvent extends Event
	{
		public static const RIGHTCLICK_SHOW:String = "rightClickShow";
		public static const RIGHTCLICK_HIDE:String = "rightClickHide";
		public static const RIGHTCLICK_CLICK:String = "rightClick";
		
		public var targetComponent:Object;
		public var currentMenu:Menu;
		public var clickedItem:String;
		
		public function RightClickEvent(type:String, targetComponent:Object, currentMenu:Menu = null, clickedItem:String = null)
		{
			super(type);
			this.targetComponent = targetComponent;
			this.currentMenu = currentMenu;
			this.clickedItem = clickedItem;
		}
        override public function clone():Event {
            return new RightClickEvent(type, targetComponent, currentMenu, clickedItem);
        }
	}
}
